<ul id="authtree" class="tree"></ul>

<#if authority.is(5,"9") >
<script type="text/javascript">
 
splitAuthContentPanel = function() {
	var authContentPanel = 'authContentPanel'; 
	
	if (authContentPanel) {	
		MUI.closePanel(authContentPanel);
	}
	
	new MUI.Panel({
		//header: false,
		id: 'authContentPanel',
		title: '基本信息',		
		contentURL: '/auth/auth.baseinfo.action',
		tabsURL: '/auth/auth.explorer.tabs.action',
		headerToolbox:true,
		headerToolboxURL:'/auth/auth.toolbar.action',
		column: 'authContentCol'
	});
			
};

var nodeinfo;	
var onNodeClick = function(bean){
	nodeinfo = bean;
	//取得这个节点上，是否有任何操作权限
	 
	var dataURL = '/data/sc.action';
	try {
		var request = new Request.JSON({
		url: dataURL,
		onComplete: function(json,text) {
			if (json.error.errorcode==0 && json.recorders.length>0){
				splitAuthContentPanel();
			}else{
				MUI.notification('<font color=red></font>(无权访问！)');
			}
		}
	}).get({"scid":"auth_on_node", "authid":nodeinfo.id});
	} catch (ex) {
		MUI.notification('<font color=red>错误：</font>('+json.error.retstring+')');
	}
	
}

var dataURL = '/data/sc.action';
var dataURLParams = {"scid":"authtree_1"};
var event = {"onNodeClick":'onNodeClick'};
window.addEvent('domready', function() {
	//导入该页面片段所需的css与js后创建树结构
	new MUI.Require({
			css: [MUI.path.plugins + 'tree/css/style.css'],
			js: [MUI.path.plugins + 'tree/scripts/tree.js'],
			onload: function(){
				loadTree('authtree', dataURL, dataURLParams, event);
			}	
	});
});
</script>
<#else>
您无权访问该页面！
</#if>